< Prev(J) / Next(K) > / View :

Filename: /text/scalc/01/func_weekday.xhp

(bookmark: bm_id3154925)
WEEKDAY function

WEEKDAY 関数
(bookmark: bm_id3152359)

(variable: weekday)WEEKDAY
(variable: weekday)WEEKDAY(hd_id3154925.136)

Returns the day of the week for the given date value. The day is returned as an integer between 1 (Sunday) and 7 (Saturday) if no type or type=1 is specified. If type=2, numbering begins at Monday=1; and if type=3 numbering begins at Monday=0.
指定した日付の値の曜日を返します。タイプがないまたはタイプ = 1 が指定されている場合、日付は 1 (日曜) から 7 (土曜) の間の整数として返されます。タイプ = 2 の場合、番号付けは月曜 = 1 から始まり、タイプ = 3 の場合、番号付けは月曜 = 0 から始まります。(par_id3154228.137)

Syntax
構文(hd_id3147217.138)

WEEKDAY(Number; Type)
WEEKDAY(数値;タイプ)(par_id3149033.139)

Number, as a date value, is a decimal for which the weekday is to be returned.
数値 に入力したシリアル値に対応する曜日が返されます。(par_id3149046.140)

Type determines the type of calculation. For Type=1, the weekdays are counted starting from Sunday (this is the default even when the Type parameter is missing). For Type=2, the weekdays are counted starting from Monday=1. For Type=3, the weekdays are counted starting from Monday=0.
タイプ は、計算のタイプを決定します。タイプ = 1 の場合、曜日は日曜から数えられます。これは、タイプパラメータがない場合のデフォルトです。タイプ = 2 の場合、曜日は月曜 = 1 から数えられます。タイプ = 3 の場合、曜日は月曜 = 0 から数えられます。(par_id3154394.141)

Note Icon 注マーク These values apply only to the standard date format that you select under (in case of MAC)Office - Preferences(/in case of MAC)(in other case)Tools - Options(/in other case) - Office Calc - Calculate.
[PO-fuzzy@scalc\01.po] ※※※未訳※※※(par_id3156188.142)

Examples
(hd_id3153836.143)

=WEEKDAY("2000-06-14") returns 4 (the Type parameter is missing, therefore the standard count is used. The standard count starts with Sunday as day number 1. June 14, 2000 was a Wednesday and therefore day number 4).
=WEEKDAY("2000-06-14") は、4 を返します。タイプパラメータはないので、標準カウントが使用されます。標準カウントは、1 日目が日曜から始まります。2000 年 6 月 14 日は水曜だったので、4 日目です。(par_id3150317.144)

=WEEKDAY("1996-07-24";2) returns 3 (the Type parameter is 2, therefore Monday is day number 1. July 24, 1996 was a Wednesday and therefore day number 3).
=WEEKDAY("1996-07-24";2) は、3 を返します。タイプパラメータは 2 なので、月曜が 1 日目です。1996 年 7 月 24 日は水曜だったので、3 日目です。(par_id3153174.145)

=WEEKDAY("1996-07-24";1) returns 4 (the Type parameter is 1, therefore Sunday is day number 1. July 24, 1996 was a Wednesday and therefore day number 4).
=WEEKDAY("1996-07-24";1) は、4 を返します。タイプパラメータは 1 なので、日曜が 1 日目です。1996 年 7 月 24 日は水曜だったので、4 日目です。(par_id3153525.146)

=WEEKDAY(NOW()) returns the number of the current day.
=WEEKDAY(NOW()) は、当日の番号を返します。(par_id3150575.147)

Tip Icon ヒント To obtain a function indicating whether a day in A1 is a business day, use the IF and WEEKDAY functions as follows:
IF(WEEKDAY(A1;2)<6;"Business day";"Weekend")

A1 の日付が営業日かどうかを示す関数を取得するためには、IF 関数と WEEKDAY 関数を次のように使用します。
IF(WEEKDAY(A1;2)<6;"Business day";"Weekend")
(par_id3150588.171)


< Prev / Next >